package com.wenson.behavior.command;

/**
 * @ClassName: TVOnCommond
 * @Author: luowangcheng
 * @Date: 2024/6/16 13:01
 * @Description:
 */
public class TVOffCommand implements Command {
    private TV tv;

    public TVOffCommand(TV tv) {
        this.tv = tv;
    }

    @Override
    public void exe() {
        tv.off();
    }

    @Override
    public void unexe() {
        tv.on();
    }
}
